#ifndef WC_H
#define WC_H

#include <stdio.h>

// Statistics result structure
typedef struct {
    int chars;        // Number of characters
    int words;        // Number of words
    int sentences;    // Number of sentences
    int lines;        // Total number of lines
    int code_lines;   // Number of code lines
    int empty_lines;  // Number of empty lines
    int comment_lines;// Number of comment lines
} Stats;

// Initialize statistics
void init_stats(Stats *stats);

// Count characters
int count_chars(const char *filename);

// Count words
int count_words(const char *filename);

// Count sentences
int count_sentences(const char *filename);

// Count all basic information
void count_basic(const char *filename, Stats *stats);

// Count extended information (code lines, empty lines, comment lines)
void count_extended(const char *filename, Stats *stats);

#endif